home *** CD-ROM | disk | FTP | other *** search
- Path: hal.COM!spike
- From: spike@hal.com (Spike White)
- Newsgroups: comp.lang.c++
- Subject: Re: help with bytes -> long
- Date: 11 Mar 1996 20:27:47 GMT
- Organization: HAL Computer Systems, Inc.
- Message-ID: <4i22c3$hes@news.hal.com>
- References: <4hl3mh$oue@frodo.smartlink.net>
- NNTP-Posting-Host: zarathustra.hal.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- Thomas Hackbarth (thomash@warp10.smartlink.net) wrote:
- : I suck at bit manipulation. I need a macro to convert RGB to a long so I
- : get this output
-
- : RED GREEN BLUE -> LONG
- : FF 00 FF FF 00 FF 00
-
- : Using Windows RGB macro I get this
-
- : RED GREEN BLUE -> COLORREF
- : FF 00 FF 00 FF 00 FF
-
- An obvious one is (RGB & 0xFFFFFF) < 8.
-
- --
- Spike White | spike@hal.com | Biker Nerds
- HaL Software Systems | '87 BMW K75S, DoD #1347 | From HaL
- Austin, TX | http://www.halsoft.com/users/spike/index.html
- Disclaimer: HaL, want me to speak for you? No, Dave...
-